package com.tyk.bookstore.front.product.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author tyk
 * @description 书籍展示图片
 */
@Schema(name = "DisplayImage", description = "书籍展示图片")
@TableName("display_image")
@Data
public class DisplayImageDo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1;

    @Schema(description = "ID")
    @TableId(value = "id")
    private Long id;

    @Schema(description = "书籍ID")
    @TableField("book_id")
    private Long bookId;

    @Schema(description = "路径")
    @TableField("path")
    private String path;

}
